/**
 * @description: 站点配置
 * @author LiQingSong
 */
import {
	TAjaxHeadersTokenKey,
	TAjaxResponseNoVerifyUrl,
	THomePath,
	TMenuLayout,
	TMenuLayoutStorageKey,
	TMenuStyle,
	TMenuStyleStorageKey,
	TSiteTitle,
	TSiteTokenKey,
	TTheme,
	TThemeStorageKey,
	TOrderStatus,
} from "@/@types/config.settings.d";

/**
 * @description: 站点名称
 */
export const siteTitle: TSiteTitle = "叮咚营养";

/**
 * @description: 首页路由path
 */
export const homePath: THomePath = "/home";

/**
 * @description: 站点本地存储Token 的 Key值
 */
export const siteTokenKey: TSiteTokenKey = "ddyy-admin-token";

/**
 * @description: 站点本地存储refreshToken 的 Key值
 */
export const siteRefreshTokenKey: string = "ddyy-admin-refresh-token";

/**
 * @description: Ajax请求头发送Token 的 Key值
 */
export const ajaxHeadersTokenKey: TAjaxHeadersTokenKey = "authorization";

/**
 * @description: Ajax请求头发送refreshToken 的 Key值
 */
export const ajaxHeadersRefreshTokenKey: string = "refresh-token";

/**
 * @description: Ajax返回值不参加统一报错的api地址
 */
export const ajaxResponseNoVerifyUrl: TAjaxResponseNoVerifyUrl = ["/user/login", "/user/info"];

/**
 * @description: Layout 模板主题
 */
export const theme: TTheme = "light";

/**
 * @description: Layout 模板主题本地存储(localStorage)的key名称
 */
export const themeStorageKey: TThemeStorageKey = "ddyy-admin-theme";

/**
 * @description: Layout 菜单导航布局
 */
export const menuLayout: TMenuLayout = "vertical";

/**
 * @description: Layout 菜单导航布局本地存储(localStorage)的key名称
 */
export const menuLayoutStorageKey: TMenuLayoutStorageKey = "ddyy-admin-memu-layout";

/**
 * @description: Layout 菜单导航风格
 */
export const menuStyle: TMenuStyle = "dark";

/**
 * @description: Layout 菜单导航风格本地存储(localStorage)的key名称
 */
export const menuStyleStorageKey: TMenuStyleStorageKey = "ddyy-admin-memu-style";

/**
 * @description: Layout 是否启用多标签Tab页
 */
export const isTabsNav: boolean = true;

/**
 * @description: Layout 多标签Tab页白名单，不用在tabNav组件中显示的路由
 */
export const tabsNavWhiteList: string[] = ["/403", "/500"];

/**
 * @description: Layout 是否启用底部
 */
export const isLayoutFooter: boolean = true;

/**
 * @description: 统一页码大小
 */
export const uniformPageSize: number[] = [10, 20, 30, 40, 50, 100];

/**
 * @description: 图文订单状态
 */
export const orderStatus: TOrderStatus[] = [
	{ id: 0, value: "待支付", type: "success" },
	{ id: 1, value: "已取消", type: "danger" },
	{ id: 2, value: "预约中", type: "warning" },
	{ id: 3, value: "已退款", type: "warning" },
	{ id: 4, value: "已预约", type: "success" },
	{ id: 5, value: "退款中", type: "primary" },
	{ id: 6, value: "咨询中", type: "danger" },
	{ id: 7, value: "已完成", type: "success" },
	{ id: 8, value: "已转出", type: "warning" },
	{ id: 9, value: "咨询已结束", type: "warning" },
	{ id: 10, value: "待转出", type: "warning" },
	{ id: 11, value: "营养师已接单", type: "warning" },
];

/**
 * @description: 上门订单状态
 */
export const orderStatusHome: TOrderStatus[] = [
	{ id: 0, value: "待支付", type: "success" },
	{ id: 1, value: "已取消", type: "warning" },
	{ id: 2, value: "预约中", type: "warning" },
	{ id: 3, value: "已退款", type: "warning" },
	{ id: 4, value: "已预约", type: "success" },
	{ id: 5, value: "退款中", type: "info" },
	{ id: 6, value: "上门中", type: "danger" },
	{ id: 7, value: "已上门", type: "danger" },
	{ id: 8, value: "已完成", type: "success" },
	{ id: 9, value: "已转出", type: "danger" },
	{ id: 10, value: "待转出", type: "danger" },
];
/**
 * @description: 项目列表
 */
export const projectList: string[] = ["上门指导", "图文咨询"];
